package lab.ui;

import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JPanel;

public class HebeiMapPanel extends JPanel {
	
	private static final long serialVersionUID = 1L;
	
	private Image background = null;

	public HebeiMapPanel() {
		try {
			background = ImageIO.read(new File("f:/hebei.png"));
		} catch (IOException e) {
		}
		this.setOpaque(false);
	}

	@Override
	protected void paintComponent(Graphics g) {
		if (background != null) {
			g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), this);
		}
		super.paintComponent(g);
	}
}
